package com.fz.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.fz.entity.Collect;
import com.baomidou.mybatisplus.extension.service.IService;

/**
 * <p>
 * 存储收藏的商品信息 服务类
 * </p>
 *
 * @author hyr
 * @since 2025-06-18
 */
public interface CollectService extends IService<Collect> {
    Boolean add(Long userId, Long goodsId);

    Boolean search(Long userId, Long goodsId);

    IPage<Collect> list(Long userId, Integer pageNo, Integer pageSize, Long selectedCategory);

    Boolean delete(Long userId, Long goodsId);
}
